package com.tony.domain.enumerate;

/**
 * @author tony
 */

public enum ErrorEnum {
    //系统异常
    _100400(100400, "Bad Request"),
    _100401(100401, "Unauthorized"),
    _100403(100403, "Forbidden"),
    _100404(100404, "Not Found"),
    _100405(100405, "Method Not Allowed"),
    _100500(100500, "Internal Server Error"),

    _101006(101006, "系统异常，请稍后再试！");


    ErrorEnum(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    private int errorCode;
    private String errorMessage;

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

}
